package cn.hpu.service;

import java.util.List;
import java.util.Map;

import cn.hpu.po.CompanyContact;

public interface CompanyContactService {

	List<CompanyContact> loadContacts(Integer beginIndex, Integer pageSize);

	void add(CompanyContact contact);

	Integer getRecordCount();

	List<CompanyContact> loadContactsByProperties(Map<String, String> queryConditions,
			Integer beginIndex, Integer pageSize);

	List<CompanyContact> loadContactsByProperties(
			Map<String, String> queryConditions);

	CompanyContact loadContactById(Integer id);

	void update(CompanyContact contact);

	void delete(CompanyContact contact);

	void deleteAll(CompanyContact[] contacts);

	List<CompanyContact> loadContactsByCustomerId(Integer customerId, Integer beginIndex, Integer pageSize);

	Integer getRecordCountByCustomerId(Integer customerId);


}
